package com.wyx;

import com.wyx.mapper.ProductBeanResultMapper;
import com.wyx.pojo.ProductBeanResult;
import com.wyx.pojo.constant.ConfigRead;
import com.wyx.pojo.result.CheckInfo;
import com.wyx.pojo.result.CheckInfoRes;
import com.wyx.service.ProductBeanResultService;
import com.wyx.service.impl.SmokeServiceImpl;
import org.junit.jupiter.api.Test;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.ArrayList;
import java.util.List;


@SpringBootTest
public class test1 {
    @Autowired
    private ConfigRead configRead;
    @Autowired
    private ProductBeanResultMapper productBeanResultMapper;
    @Autowired
    private SmokeServiceImpl smokeService;
    @Value("${server.port}")
    private String port;


    @Test
    public void test2() {
        while (true) {
            try {
                Thread.sleep(1000);
                System.out.println(port);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

    @Test
    public void test3() {
        List<ProductBeanResult> productBeanResults = productBeanResultMapper.selectLatestDate();
        System.out.println(productBeanResults.size());
    }

    @Test
    public void test4() {

    }
}
